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

bug(parser): Inline attribute parsing is incorrect #684

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

gdamore
Copy link
Collaborator

@gdamore gdamore commented Jul 3, 2020

(Note that block attributes, and some other inline attributes,
suffer from this problem -- this PR only fixes icon and image
inline attributes.)

While working on some new support for align and float attributes,
we noticed that the parser was fragile, and failed on certain
cases including double embedded whitespace, embedded quote marks,
and others.

This logic will be expanded to other elements and to block
attributes; this incremental PR should be easier to review.

(Note that block attributes, and some other inline attributes,
suffer from this problem -- this PR only fixes icon and image
inline attributes.)

While working on some new support for align and float attributes,
we noticed that the parser was fragile, and failed on certain
cases including double embedded whitespace, embedded quote marks,
and others.

This logic will be expanded to other elements and to block
attributes; this incremental PR should be easier to review.
@codecov
Copy link

codecov bot commented Jul 3, 2020

Codecov Report

Merging #684 into master will decrease coverage by 0.05%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #684      +/-   ##
==========================================
- Coverage   85.23%   85.18%   -0.06%     
==========================================
  Files          71       71              
  Lines        4720     4744      +24     
==========================================
+ Hits         4023     4041      +18     
- Misses        444      449       +5     
- Partials      253      254       +1     

@xcoulon xcoulon merged commit 04f2a1d into bytesparadise:master Jul 3, 2020
@xcoulon
Copy link
Member

xcoulon commented Jul 3, 2020

thanks @gdamore!

@gdamore gdamore deleted the attrfix branch July 3, 2020 22:46
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

Successfully merging this pull request may close these issues.

2 participants