Skip to content

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

Open
poti1 wants to merge 1 commit into
mojolicious:mainfrom
poti1:2029,2030-Mojo-DOM-end-of-comment
Open

Fixed: Mojo::DOM doesn't recognize end of comment #2029 #2030#2082
poti1 wants to merge 1 commit into
mojolicious:mainfrom
poti1:2029,2030-Mojo-DOM-end-of-comment

Conversation

@poti1

@poti1 poti1 commented Jun 26, 2023

Copy link
Copy Markdown

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

kraih commented Jun 26, 2023

Copy link
Copy Markdown
Member

That commit message tells me nothing.

@kraih

kraih commented Jun 26, 2023

Copy link
Copy Markdown
Member

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

@poti1

poti1 commented Jun 27, 2023

Copy link
Copy Markdown
Author

That commit message tells me nothing.

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

@kraih

kraih commented Jun 27, 2023

Copy link
Copy Markdown
Member

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

kraih commented Jun 28, 2023

Copy link
Copy Markdown
Member

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

poti1 commented Jun 29, 2023

Copy link
Copy Markdown
Author

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

rawleyfowler commented Jun 29, 2023

Copy link
Copy Markdown
Contributor

@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

poti1 commented Jun 29, 2023

Copy link
Copy Markdown
Author

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

@poti1

poti1 commented Jul 4, 2023

Copy link
Copy Markdown
Author

@kraih Anything missing from my side?

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

@marcusramberg marcusramberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@kraih

kraih commented Aug 26, 2023

Copy link
Copy Markdown
Member

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

@poti1

poti1 commented Aug 26, 2023

Copy link
Copy Markdown
Author

I completely forgot what the fix even was now 😅

@poti1

poti1 commented Aug 26, 2023

Copy link
Copy Markdown
Author

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

poti1 commented Aug 26, 2023

Copy link
Copy Markdown
Author

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

@kraih

kraih commented Aug 26, 2023

Copy link
Copy Markdown
Member

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

@poti1

poti1 commented Aug 26, 2023

Copy link
Copy Markdown
Author

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

@kraih

kraih commented Aug 26, 2023

Copy link
Copy Markdown
Member

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.

4 participants