Area: dom
Summary
Node.prototype.isSameNode() is not implemented — the method is absent from the prototype, so any call throws.
FAIL [0/9] dom/nodes/Node-isSameNode.html
— doctypes should be compared on reference: doctype1.isSameNode is not a function
Expected
Per DOM §dom-node-issamenode: isSameNode(otherNode) is a legacy alias that returns true when otherNode is this node (identity, like ===) and false otherwise (including for null).
Root cause
Node methods are wired up in wrap(id) in crates/js/src/bootstrap/document.js — isSameNode should sit next to contains (line 1214) / compareDocumentPosition (line 1221) / isEqualNode, all of which already exist. It's just never defined.
Good first issue
cargo run --release -p wpt-runner -- ./wpt dom/nodes/Node-isSameNode.html 50
Area:
domSummary
Node.prototype.isSameNode()is not implemented — the method is absent from the prototype, so any call throws.Expected
Per DOM §dom-node-issamenode:
isSameNode(otherNode)is a legacy alias that returnstruewhenotherNodeis this node (identity, like===) andfalseotherwise (including fornull).Root cause
Node methods are wired up in
wrap(id)incrates/js/src/bootstrap/document.js—isSameNodeshould sit next tocontains(line 1214) /compareDocumentPosition(line 1221) /isEqualNode, all of which already exist. It's just never defined.Good first issue