This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21636 - The rules for ProcessingInstruction may be wrong; processing instructions actually end in "?>" not just ">".
Summary: The rules for ProcessingInstruction may be wrong; processing instructions act...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-09 09:24 UTC by contributor
Modified: 2013-04-11 22:06 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-04-09 09:24:10 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html
Multipage: http://www.whatwg.org/C#serializing-html-fragments
Complete: http://www.whatwg.org/c#serializing-html-fragments

Comment:
The rules for ProcessingInstruction may be wrong; processing instructions
actually end in "?>" not just ">".

Posted from: 76.119.210.197 by poccil14@gmail.com
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0
Comment 1 Simon Pieters 2013-04-09 11:24:10 UTC
In XML they end in ?>, in SGML they end in >. text/html serialization doesn't actually support PIs, but get parsed into a bogus comment that ends with the first >.
Comment 2 Ian 'Hixie' Hickson 2013-04-11 22:06:17 UTC
Yeah, what zcorpan said. This is extreme legacy stuff.