"use strict";
const HTMLElementImpl = require("./HTMLElement-impl").implementation;
const { removeStylesheet, createStylesheet } = require("../helpers/stylesheets");
const { documentBaseURL } = require("../helpers/document-base-url");
const { childTextContent } = require("../helpers/text");
const { asciiCaseInsensitiveMatch } = require("../helpers/strings");
class HTMLStyleElementImpl extends HTMLElementImpl {
constructor(globalObject, args, privateData) {
super(globalObject, args, privateData);
this.sheet = null;
this._isOnStackOfOpenElements = false;
}
_attach() {
super._attach();
if (!this._isOnStackOfOpenElements) {
this._updateAStyleBlock();
}
}
_detach() {
super._detach();
if (!this._isOnStackOfOpenElements) {
this._updateAStyleBlock();
}
}
_childTextContentChangeSteps() {
super._childTextContentChangeSteps();
// This guard is not required by the spec, but should be unobservable (since you can't run script during the middle
// of parsing a