Skip to content
New issue

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

Parser is modifying element attributes #145

Closed
Amrrx opened this issue Aug 25, 2021 · 0 comments
Closed

Parser is modifying element attributes #145

Amrrx opened this issue Aug 25, 2021 · 0 comments

Comments

@Amrrx
Copy link

Amrrx commented Aug 25, 2021

Hello,

Am trying to parse an html to edit some tags attributes then rewrite the file back again

the parser has ability to read and write the file correctly to its original state unless you make any change in attributes list.

Am trying to change this element attributes by inserting a new attribute key and value

<input matInput (keyup)="applyFilter($event)" placeholder="Ex. IMEI" #input>

the output is slightly different
<input matInput keyup applyFilter event placeholder="Ex. IMEI" input demoAttr="demot_Test">

as you can notice the attributes had changed. I with if there is any support.

Thank you

taoqf added a commit that referenced this issue Aug 28, 2021
@taoqf taoqf closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants