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 24258 - "When a ProcessingInstruction node node is inser..."
Summary: "When a ProcessingInstruction node node is inser..."
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: CSSOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Simon Pieters
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-09 19:24 UTC by Ian 'Hixie' Hickson
Modified: 2014-01-10 08:15 UTC (History)
0 users

See Also:


Attachments

Description Ian 'Hixie' Hickson 2014-01-09 19:24:56 UTC
http://dev.w3.org/csswg/cssom/#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction

[[
When a ProcessingInstruction node node is inserted to a document, removed from a document, becomes part of the prolog, is no longer part of the prolog [...]
]]

don't the first two there subsume the last two entirely?
Comment 1 Simon Pieters 2014-01-09 21:15:00 UTC
No, consider e.g.:

<root>
 <script xmlns='http://www.w3.org/1999/xhtml'>
  onload = function() {
    document.appendChild(document.documentElement);
  }
 </script>
</root>
<?xml-stylesheet ...?>
Comment 2 Simon Pieters 2014-01-10 08:15:51 UTC
But the first two appear to be unnecessary.

https://dvcs.w3.org/hg/csswg/rev/371b1b635ae6