#368 closed defect (fixed)
HTML("<? ?>") causes ValueError
Reported by: | stou@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | 0.6.1 |
Component: | General | Version: | 0.5.1 |
Keywords: | Cc: |
Description
Calling HTML("<? ?>") causes a ValueError?
Attachments (4)
Change History (8)
comment:1 Changed 15 years ago by cmlenz
- Milestone changed from 0.6 to 0.6.1
comment:2 Changed 15 years ago by Carsten Klein <carsten.klein@…>
comment:3 Changed 12 years ago by anonymous
'<?foo ?>' will also raise a KeyError? on current genshi trunk. Genshi assumes that all processing instructions have data attached - i.e. <?foo x > or <?page break>. This is incorrect - consider this example from the HTML 4.01 specifications (http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.3.6):
'<?experiment> ... <?/experiment>'
The genshi_HTML_PI.diff accepts empty data on PI - it doesn't break the test suite, but probably needs further testing
comment:4 Changed 12 years ago by hodgestar
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
I think that is correct. <? ?> is not a valid PI.
<?foo ?> will yield a correct object.