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

Fixed: Mojo::DOM doesn't recognize end of comment #2029 #2030 #2082

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

poti1
Copy link

@poti1 poti1 commented Jun 26, 2023

Summary

Mojo::DOM doesn't recognize end of comment (when it should) #2030
Mojo::DOM treats "-- >" as end of comment (it shouldn't) #2029

Motivation

EXPLAIN WHY YOU BELIEVE THESE CHANGES ARE NECESSARY HERE

References

LIST RELEVANT ISSUES, PULL REQUESTS AND FORUM DISCUSSIONS HERE

@kraih
Copy link
Member

kraih commented Jun 26, 2023

That commit message tells me nothing.

@kraih
Copy link
Member

kraih commented Jun 26, 2023

Since both issues were reported by @mauke, a review would be appreciated.

@poti1
Copy link
Author

poti1 commented Jun 27, 2023

That commit message tells me nothing.

I am not sure how to best proceed. (Should I revert and update the comment?)

@kraih
Copy link
Member

kraih commented Jun 27, 2023

I am not sure how to best proceed. (Should I revert and update the comment?)

Just change the commit message to something meaningful.

@poti1 poti1 changed the title Fixed: 2029,2030-Mojo-DOM-end-of-comment. Fixed: Mojo::DOM doesn't recognize end of comment #2029 #2030 Jun 27, 2023
@kraih
Copy link
Member

kraih commented Jun 28, 2023

You changed the title of the PR, not the commit message. I'll mark this PR as work in progress for now, so nobody reviews it yet by accident.

@poti1
Copy link
Author

poti1 commented Jun 29, 2023

You changed the title of the PR, not the commit message. I'll mark this PR as work in progress for now, so nobody reviews it yet by accident.

Not sure how to just change the commit message here without submitting another commit.

@rawleyfowler
Copy link
Contributor

rawleyfowler commented Jun 29, 2023

@poti1

git commit --amend -m <useful commit message>
git push --force <origin> <branch>

@poti1 poti1 force-pushed the 2029,2030-Mojo-DOM-end-of-comment branch from a52af14 to e17bd94 Compare June 29, 2023 17:00
@poti1
Copy link
Author

poti1 commented Jun 29, 2023

I didn't know about the --ammend option. Thanks

@poti1
Copy link
Author

poti1 commented Jul 4, 2023

@kraih Anything missing from my side?

@kraih kraih requested review from a team, kraih, jhthorsen, christopherraa, marcusramberg, jberger and Grinnz and removed request for a team July 4, 2023 12:24
Copy link
Member

@marcusramberg marcusramberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kraih
Copy link
Member

kraih commented Aug 26, 2023

Wonder if those lookahead assertions will end up being a performance issue in the future when someone finds a weird enough HTML document.

@poti1
Copy link
Author

poti1 commented Aug 26, 2023

I completely forgot what the fix even was now 😅

@poti1
Copy link
Author

poti1 commented Aug 26, 2023

Wonder if those lookahead assertions will end up being a performance issue in the future when someone finds a weird enough HTML document.

Any suggestions?

@poti1
Copy link
Author

poti1 commented Aug 26, 2023

Maybe we can use an "unrolling-the-loop" pattern 🤔

@kraih
Copy link
Member

kraih commented Aug 26, 2023

Something that's also easy to port to the JavaScript version would be neat. 😁

@poti1
Copy link
Author

poti1 commented Aug 26, 2023

I know Mojo::DOM. What's the JavaScript version?
(I'm still not familiar with all Mojo features)

@kraih
Copy link
Member

kraih commented Aug 26, 2023

I know Mojo::DOM. What's the JavaScript version? (I'm still not familiar with all Mojo features)

https://github.com/mojolicious/dom.js

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.

None yet

4 participants