-
-
Notifications
You must be signed in to change notification settings - Fork 9
Fix attribute parser to support edge-cases #26
Comments
@pantharshit00 Do you have any idea on how we can solve this? in #25 how are you adding attributes to node? can we use similar thing to get attributes from node? |
So we can use Apart from this we can also use |
@saurabhdaware In #25, I am just appending my attribute before I don't really parse anything because I don't need to parse anything. Here is the code for that: https://github.com/pantharshit00/abell-renderer/blob/21d4a451f5e3455bf25e6518e10c6fba38afff43/src/post-compilation.js#L4 |
This will be fixed in https://github.com/abelljs/abell-renderer/tree/next |
Hopefully fixed in #27 |
Current parseAttribute function in
src/component-parser.js
file fails for cases likeonload="this.rel= 'stylesheet'; this.onload=null"
In current method, we split string on spaces and consider it as separate attribute value combination and then we separate on
=
to find key and value.The text was updated successfully, but these errors were encountered: