智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/26/26eb420811116370ce2aca8d842...

15 lines
540 B

"use strict";
const { firstChildWithLocalName } = require("./traversal");
const { HTML_NS } = require("./namespaces");
// https://html.spec.whatwg.org/multipage/interactive-elements.html#summary-for-its-parent-details
exports.isSummaryForParentDetails = summaryElement => {
const parent = summaryElement.parentNode;
if (parent === null) {
return false;
}
if (parent._localName !== "details" || parent._namespaceURI !== HTML_NS) {
return false;
}
return firstChildWithLocalName(parent, "summary") === summaryElement;
};