Open Bug 1559194 Opened 6 years ago Updated 2 years ago

Add generic helper to get main content node

Categories

(Core :: XUL, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: bdahl, Unassigned)

References

Details

We have several places where we need to get the main content node e.g. in XUL this would be the <window> and in HTML it would be the <body>. When we start loading all XUL as XHTML this gets event more complicated since we still need to return the <window> node, but it will be in an XHTML document. We should create a generic helper to handle this.

Ultimately, this new behavior should go away as we transition more XUL documents to an HTML like structure.

There some more discussion on this in bug 1558704.

Bugbug thinks this bug is a enhancement, but please change it back in case of error.

Type: defect → enhancement
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.