Closed Bug 761020 Opened 12 years ago Closed 12 years ago

Add nsIDocument::GetDocumentType()

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
No description provided.
Attachment #629644 - Flags: review?(mounir)
Comment on attachment 629644 [details] [diff] [review] Patch v1 Review of attachment 629644 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/src/nsDocument.cpp @@ +4318,5 @@ > + if (child->NodeType() == nsIDOMNode::DOCUMENT_TYPE_NODE) { > + return child; > + } > + } > + return NULL; I would prefer |nsnull|. I don't think we chose to move to |NULL|. @@ +4325,4 @@ > NS_IMETHODIMP > nsDocument::GetDoctype(nsIDOMDocumentType** aDoctype) > { > NS_ENSURE_ARG_POINTER(aDoctype); No need for that. Use |MOZ_ASSERT(aDocType)| instead.
Attachment #629644 - Flags: review?(mounir) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: