- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 08 Oct 2009 13:32:34 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7842
Summary: No programmatic way to make an HTML document - consider
adding createHTMLDocument
Product: HTML WG
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: HTML5 spec bugs
AssignedTo: dave.null@w3.org
ReportedBy: mjs@apple.com
QAContact: public-html-bugzilla@w3.org
CC: ian@hixie.ch, mike@w3.org, public-html@w3.org
Problem:
With the combination of HTML5, and DOM APIs, there is a programmatic way to
make a brand new empty XML document (DOMImplementation.createDocument), but no
way to make an HTML document other than by action of the parser. This seems
like an unfortunate gap.
Possible solution:
It turns out that an old draft of DOM2 HTML included an HTMLDOMImplementation
interface with a createHTMLDocument() method - intended to be implemented on
the DOMImplementation object. WebKit and Presto implement it. Without this
method, there is no programmatic way to make an HTML document; you have to use
the parser. Since HTML5 takes over where DOM2HTML left off, I think it would be
a good idea to add this method back.
--
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 8 October 2009 13:32:35 UTC