Elements aren't always created in the HTML namespace

RESOLVED INVALID

Status

RESOLVED INVALID
4 years ago
3 months ago

People

(Reporter: vporof, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
I'm not sure if this is a bug or not, but it annoyed me.

STR:
Go to https://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindTexture.xml (this page uses a crappy html namespace).

var canvas = document.createElement("canvas");
canvas.getContext // undefined

var canvas2 = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
canvas2.getContext // function
(Reporter)

Updated

4 years ago
Summary: Document elements aren't always created in the → Elements aren't always created in the HTML namespace
This is the same behavior as if you ran the script on the page, so marking invalid
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID

Updated

3 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.