Username BBCode

DOMDocument::loadHTML(): Tag marquee invalid ... - Username BBCode

DOMDocument::loadHTML(): Tag marquee invalid ...

by aamot » Mon Oct 22, 2018 12:32 pm

Get this warning :

[phpBB Debug] PHP Warning: in file [ROOT]/ext/zukero/userbbcode/event/main_listener.php on line 69: DOMDocument::loadHTML(): Tag marquee invalid in Entity, line: 2

This is the mq code in BBcodes panel :
[mq]{TEXT}[/mq]
<marquee behavior=alternate>{TEXT}</marquee>
The error disappeared when I removed the MQ BBCode in BBCode panel, and reappeared when I reinstaded it.
The Warning does not show, if i disables it with the code tag

Code: Select all

[mq][/mq]

I am also using the Advanced BBcode box ( since I noticed that someone else in here commented it:
https://www.phpbb.com/customise/db/exte ... bcode_box/

So I changed the "mq" tag to "marq" tag (from the Advanced BBcode), but it is still the same error:
To test I puty in all variants, left, right, up, down, and get 4 errors:

[phpBB Debug] PHP Warning: in file [ROOT]/ext/zukero/userbbcode/event/main_listener.php on line 69: DOMDocument::loadHTML(): Tag marquee invalid in Entity, line: 3
[phpBB Debug] PHP Warning: in file [ROOT]/ext/zukero/userbbcode/event/main_listener.php on line 69: DOMDocument::loadHTML(): Tag marquee invalid in Entity, line: 5
[phpBB Debug] PHP Warning: in file [ROOT]/ext/zukero/userbbcode/event/main_listener.php on line 69: DOMDocument::loadHTML(): Tag marquee invalid in Entity, line: 7
[phpBB Debug] PHP Warning: in file [ROOT]/ext/zukero/userbbcode/event/main_listener.php on line 69: DOMDocument::loadHTML(): Tag marquee invalid in Entity, line: 9
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4541: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3291)


Regards, Asbjorn
Norway
Asbjorn Aamot, Norway
User avatar
aamot
Registered User
Posts: 60
Joined: Fri May 20, 2005 11:16 am
Location: Norway
Contact:

Re: DOMDocument::loadHTML(): Tag marquee invalid ...

by Zukero » Fri Oct 26, 2018 12:06 pm

Hello,

The source of the problem seems to come from the fact that marquee is not a valid html tag.

The solution will be for me to discard error reporting in the html parsing, and fall back to unmodified input if there's a parsing error.

Idk when I'll be able to do it though.
User avatar
Zukero
Registered User
Posts: 50
Joined: Fri Oct 16, 2015 9:19 am
Contact:

Re: DOMDocument::loadHTML(): Tag marquee invalid ...

by aamot » Fri Oct 26, 2018 12:19 pm

Ok, - no big problem for me ;)
Btw; Maybe someone could make a ext for marquee ? ;)

Thanks!

Regards, Asbjorn
Asbjorn Aamot, Norway
User avatar
aamot
Registered User
Posts: 60
Joined: Fri May 20, 2005 11:16 am
Location: Norway
Contact: