Skip to main content
Topic: first/last message tooltip in messageindex creates invalid html (Read 6368 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

first/last message tooltip in messageindex creates invalid html

<span class="preview" title="So I wrote a post, then saved it before noticing errant markup at the foot of it - so I tried to use the inline editor/quick modify, which opened but when trying to save I just got the 'session verification failed' warning.&# ..."><span id="msg_1530">
In particular:
Code: [Select]
session verification failed' warning.&# ..."><span id="msg_1530">
_____________________________________^^
Last Edit: September 11, 2013, 08:32:18 am by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: first/last message tooltip in messageindex creates invalid html

Reply #1

 Spuds wonders who will be first to chime in about those not being needed :P

Re: first/last message tooltip in messageindex creates invalid html

Reply #2

Fixed in the repo and on the site .... now the only validation error is the one we agreed to and one by whoever put that ul in the h2  :P (well on that page of course!)

Re: first/last message tooltip in messageindex creates invalid html

Reply #3

 emanuele is innocent

 emanuele moves teh topic
Bugs creator.
Features destroyer.
Template killer.

Re: first/last message tooltip in messageindex creates invalid html

Reply #4

mmm...
I'm having some issues with html_entity_decode:
Code: [Select]
[code]������������// Always one clown in the audience who likes long words or not using the spacebar
������������if (Util::strlen($matches[1]) > $len + $buffer)
���������������$matches[1] = Util::substr($matches[1], 0, $len);

������������$text = rtrim($matches[1]) . ' ...';
���������}
������}
������else
���������$text = Util::substr($text, 0, $len) . '...';

������$t
Apparently tabs I think.
Util::strlen returns 0 but
Code: [Select]
Util::strlen($text) > $len
returns true and the preg_match fails... ???
Bugs creator.
Features destroyer.
Template killer.

Re: first/last message tooltip in messageindex creates invalid html

Reply #5

&%#&*# entities ... I hate them to death and php just makes it worse  ... will take another look unless someone else gets to it first ... working on some other bloat to add

 

Re: first/last message tooltip in messageindex creates invalid html

Reply #6

Commenting out the html_entities_decode seems to stop throwing errors, though I'm not sure of the consequences...
Bugs creator.
Features destroyer.
Template killer.