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)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: Brade, Assigned: vidur)

References

Details

Composer needs an api for inserting a doctype (given a dom document)
Blocks: 23838
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
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
brade, could you verify this one ?
.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.