
committed by
Miško Hevery

parent
46efd4b938
commit
87f60bccfd
@ -205,6 +205,13 @@ function extractProperties(
|
||||
function extractName(type: Function): string|null {
|
||||
let name = type['name'];
|
||||
|
||||
// The polyfill @webcomponents/custom-element/src/native-shim.js overrides the
|
||||
// window.HTMLElement and does not have the name property. Check if this is the
|
||||
// case and if so, set the name manually.
|
||||
if (name === '' && type === HTMLElement) {
|
||||
name = 'HTMLElement';
|
||||
}
|
||||
|
||||
switch (name) {
|
||||
// see https://www.w3.org/TR/html5/index.html
|
||||
// TODO(vicb): generate this map from all the element types
|
||||
|
Reference in New Issue
Block a user