mauke
mauke
I mean, I get better results both right-to-left and left-to-right: https://github.com/mauke/HTML-Blitz/blob/9f0496ac28260675f8bbaabb68ddad477c09231a/t/selector-combinators.t#L155-L169 (The "optimisation" here is not to use backtracking; cf. https://research.swtch.com/glob.)
Mojolicious tests (t/mojo/base.t, t/mojo/loader.t) have started failing in blead perl / v5.41.3 because the use of `'` as a package separator (previously deprecated in v5.38.0) has been removed. The test...
The following change would implement the correct (at least for HTML) behavior: ```diff diff --git lib/Mojo/DOM/HTML.pm lib/Mojo/DOM/HTML.pm index e10b1532d..81f54c014 100644 --- lib/Mojo/DOM/HTML.pm +++ lib/Mojo/DOM/HTML.pm @@ -36,8 +36,10 @@ my $TOKEN_RE...
The problem is stuff like this: ```perl subtest 'XML name characters' => sub { my $dom = Mojo::DOM->new->xml(1)->parse('foo'); is $dom->at('Foo')->text, 'foo', 'right text'; is "$dom", '<1a>foo</1a>', 'right result'; $dom =...
Recall: > After seeing ` ``` According to the HTML5 spec, this contains a script element because it parses like ```html <😄 title="console.log('hi');"> ``` But Mojo::DOM doesn't see the ``....
I've rebased the PR on top of blead and removed the conflicts. Unless someone objects (or beats me to the punch), I intend on merging this within a day or...
Simplified to crash without List::Util: ```perl sub all (&@); all { $_->[0] } map { [ } ``` Result: ``` $ perl try.pl syntax error at try.pl line 2, near...
Bisecting on `-e 'sub all (&@); eval q#all { $_->[0] } map { [ }#'` blames 73cdf3a836756ebe82b64077bf38de0bf44736dc: ``` bad - non-zero exit from ./perl -Ilib -e sub all (&@); eval...
`split " "` is not the same thing as `split / /`. (Also, this is still broken in blead.)
``` $ perl -wE 'say "[$_]" for split / /, " foo\tbar"' [] [] [foo bar] $ perl -wE 'say "[$_]" for split " ", " foo\tbar"' [foo] [bar] $...