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 28227 - Shouldn't srcdoc in XHTML be parsed as XML, since the authoring requirements require the value to be XML?
Summary: Shouldn't srcdoc in XHTML be parsed as XML, since the authoring requirements ...
Status: RESOLVED MOVED
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: https://html.spec.whatwg.org/#process...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-16 13:37 UTC by contributor
Modified: 2015-09-01 15:14 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2015-03-16 13:37:31 UTC
Specification: https://html.spec.whatwg.org/multipage/embedded-content.html
Multipage: https://html.spec.whatwg.org/multipage/#process-the-iframe-attributes
Complete: https://html.spec.whatwg.org/#process-the-iframe-attributes
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Shouldn't srcdoc in XHTML be parsed as XML, since the authoring requirements
require the value to be XML?
<http://www.w3.org/mid/550315FA.50400@mit.edu>

Posted from: 212.247.211.200 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.74 Safari/537.36 OPR/28.0.1750.36 (Edition beta)
Comment 1 Ian 'Hixie' Hickson 2015-03-30 23:15:57 UTC
Interesting. Good question. Dunno. Definitely the two should be consistent, but which should it be?
Comment 2 Simon Pieters 2015-03-31 14:47:38 UTC
It seems the spec has been like this since srcdoc was first added.

https://html5.org/r/4619

Current implementations parse as HTML.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3476

innerHTML uses XML parsing in XML documents.

I don't have a strong opinion either way. I would have expected XML parsing, though.
Comment 3 Anne 2015-09-01 15:14:10 UTC
https://github.com/whatwg/html/pull/77