Nested BBCode "move" doesn't work?

Started by kkant, January 30, 2016, 03:02:14 AM

Previous topic - Next topic

kkant

The following nested code works:


[move][b][color=green]Hello[/color][/b][/move]


But if I move the "move" code inside the nest it doesn't work:


[b][color=green][move]Hello[/move][/color][/b]


Is this expected behavior, or have I found a bug?

Examples:

Would Work (i.e. move left) if "move" BBCode was enabled

Not Working (if "move" was enabled, this text would move but not be colored/bold, and you would still see the "/color /b" as below)
[/color][/b]

Illori

some html elements are block level and others are inline. they need to be in the correct order to be parsed correctly.

https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements

https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements

SMF considers the move tag as a block level element so it has to be first.

Advertisement: