Closed
Bug 25020
Opened 25 years ago
Closed 25 years ago
need API for inserting doctype in Composer
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
M15
People
(Reporter: Brade, Assigned: vidur)
References
Details
Composer needs an api for inserting a doctype (given a dom document)
| Assignee | ||
Comment 1•25 years ago
|
||
nsIHTMLDocument contains:
NS_IMETHOD GetDocTypeStr(nsString& aDocTypeString)=0;
NS_IMETHOD AddDocTypeDecl(const nsString& aDocTypeString, nsDTDMode aMode)=0;
My understanding is that you want to just insert a DOCTYPE string into HTML
documents and then get it later for serialization. If these methods are enough,
I'd like to close the bug.
Status: NEW → ASSIGNED
Target Milestone: M15
Comment 2•25 years ago
|
||
The above API probably works from C++ code but the editor needs wants to do this
from JS so the above is not enough. I just checked in changes that make it
possible for the editor to set the document type through the DOM API and the
DOM API is currently also saved to disk.
Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 3•25 years ago
|
||
brade, could you verify this one ?
You need to log in
before you can comment on or make changes to this bug.
Description
•