Skip to content

Commit d2034e5

Browse files
committed
specfmt
1 parent d25e53a commit d2034e5

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

source

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125705,7 +125705,8 @@ interface <dfn interface>Sanitizer</dfn> {
125705125705

125706125706
<dl class="domintro">
125707125707
<dt><code data-x=""><var>config</var> = <var>sanitizer</var>.<span data-x="dom-Sanitizer-get">get</span>()</code></dt>
125708-
<dd><p>Returns a copy of the sanitizer's <span data-x="SanitizerConfig">configuration</span>.</p></dd>
125708+
<dd><p>Returns a copy of the sanitizer's <span
125709+
data-x="SanitizerConfig">configuration</span>.</p></dd>
125709125710

125710125711
<dt><code data-x=""><var>sanitizer</var>.<span data-x="dom-Sanitizer-allowElement">allowElement</span>(<var>element</var>)</code></dt>
125711125712
<dd><p>Ensures that the sanitizer configuration allows the specified element.</p></dd>
@@ -125714,7 +125715,8 @@ interface <dfn interface>Sanitizer</dfn> {
125714125715
<dd><p>Ensures that the sanitizer configuration blocks the specified element.</p></dd>
125715125716

125716125717
<dt><code data-x=""><var>sanitizer</var>.<span data-x="dom-Sanitizer-replaceElementWithChildren">replaceElementWithChildren</span>(<var>element</var>)</code></dt>
125717-
<dd><p>Configures the sanitizer to remove the specified element but keep its child nodes.</p></dd>
125718+
<dd><p>Configures the sanitizer to remove the specified element but keep its child
125719+
nodes.</p></dd>
125718125720

125719125721
<dt><code data-x=""><var>sanitizer</var>.<span data-x="dom-Sanitizer-allowAttribute">allowAttribute</span>(<var>attribute</var>)</code></dt>
125720125722
<dd><p>Configures the sanitizer to allow the specified attribute globally.</p></dd>
@@ -125733,10 +125735,11 @@ interface <dfn interface>Sanitizer</dfn> {
125733125735

125734125736
<dt><code data-x=""><var>sanitizer</var>.<span data-x="dom-Sanitizer-setDataAttributes">setDataAttributes</span>(<var>allow</var>)</code></dt>
125735125737
<dd><p>Sets whether the sanitizer preserves custom data attributes (e.g., <code
125736-
data-x="attr-data-*">data-*</code>).</p></dd>
125738+
data-x="attr-data-*">data-*</code>).</p></dd>
125737125739

125738125740
<dt><code data-x=""><var>sanitizer</var>.<span data-x="dom-Sanitizer-removeUnsafe">removeUnsafe</span>()</code></dt>
125739-
<dd><p>Modifies the configuration to automatically remove elements and attributes that are considered unsafe.</p></dd>
125741+
<dd><p>Modifies the configuration to automatically remove elements and attributes that are
125742+
considered unsafe.</p></dd>
125740125743
</dl>
125741125744

125742125745
<p>A <code>Sanitizer</code> has an associated <dfn for="Sanitizer">configuration</dfn> (a

0 commit comments

Comments
 (0)