We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const ngHtmlParser = require('angular-html-parser') const { rootNodes } = ngHtmlParser.parse( /* HTML */ ` <svg:defs> <svg:linearGradient></svg:linearGradient> </svg:defs> `.trim(), ) console.log('rootNodes:', ...rootNodes)
rootNodes: Element { name: ':svg:defs', // <-- why? attrs: [], children: [ Text { value: '\n ', sourceSpan: [ParseSourceSpan], i18n: undefined, type: 'text' }, Element { name: ':svg:linearGradient', attrs: [], children: [], sourceSpan: [ParseSourceSpan], startSourceSpan: [ParseSourceSpan], endSourceSpan: [ParseSourceSpan], nameSpan: [ParseSourceSpan], i18n: null, type: 'element' }, Text { value: '\n ', sourceSpan: [ParseSourceSpan], i18n: undefined, type: 'text' } ], sourceSpan: ParseSourceSpan { start: ParseLocation { file: [ParseSourceFile], offset: 0, line: 0, col: 0 }, end: ParseLocation { file: [ParseSourceFile], offset: 10, line: 0, col: 10 }, details: null }, startSourceSpan: ParseSourceSpan { start: ParseLocation { file: [ParseSourceFile], offset: 0, line: 0, col: 0 }, end: ParseLocation { file: [ParseSourceFile], offset: 10, line: 0, col: 10 }, details: null }, endSourceSpan: ParseSourceSpan { start: ParseLocation { file: [ParseSourceFile], offset: 63, line: 2, col: 4 }, end: ParseLocation { file: [ParseSourceFile], offset: 74, line: 2, col: 15 }, details: null }, nameSpan: ParseSourceSpan { start: ParseLocation { file: [ParseSourceFile], offset: 1, line: 0, col: 1 }, end: ParseLocation { file: [ParseSourceFile], offset: 9, line: 0, col: 9 }, details: null }, i18n: null, type: 'element' }
The text was updated successfully, but these errors were encountered:
fix(angular-parser): parse tags with namespace correctly
d796267
related prettier/angular-html-parser#22
fix(angular-parser): parse tags with namespace correctly (#46)
47f09b2
No branches or pull requests
The text was updated successfully, but these errors were encountered: