Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
540 B
JavaScript
Executable File
16 lines
540 B
JavaScript
Executable File
"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;
|
|
};
|