We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbf7690 commit 08673f8Copy full SHA for 08673f8
src/core/layout.js
@@ -16,16 +16,6 @@
16
17
import {devAssertElement} from './assert';
18
19
-/**
20
- * Whether the tag is an internal (service) AMP tag.
21
- * @param {!Element|string} tag
22
- * @return {boolean}
23
- */
24
-function isInternalElement(tag) {
25
- const tagName = typeof tag == 'string' ? tag : tag.tagName;
26
- return !!(tagName && tagName.toLowerCase().startsWith('i-'));
27
-}
28
-
29
/**
30
* Returns "true" for internal AMP nodes or for placeholder elements.
31
* @param {!Node} node
@@ -37,7 +27,7 @@ export function isInternalOrServiceNode(node) {
37
}
38
node = devAssertElement(node);
39
40
- if (isInternalElement(node)) {
+ if (node.tagName.toLowerCase().startsWith('i-')) {
41
return true;
42
32
43
33
if (
0 commit comments