Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BBC breaks page layout #1175

Closed
ghost opened this issue Jan 11, 2014 · 4 comments
Closed

BBC breaks page layout #1175

ghost opened this issue Jan 11, 2014 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 11, 2014

Old Bug Report

BBC breaks when put inside a code BBC element in post.

This is the code supplied on the original bug report.

[code]
[table][tr][td]
[table][tr][td]
[/center]
[/td][/tr][/table][/td][/tr][/table][/code]
[table][tr][td]
[table][tr][td]
[/center]
[/td][/tr][/table][/td][/tr][/table]
[img]http://media.simplemachinesweb.com/smf/smsite2/images/site/smsite_logo.jpg?rc2.1.1[/img]
[table][tr][td]
[table][tr][td]
[/center]
[/td][/tr][/table][/td][/tr][/table]
[img]http://media.simplemachinesweb.com/smf/smsite2/images/site/smsite_logo.jpg?rc2.1.1[/img]
[/code]
@Oldiesmann
Copy link
Contributor

So if you put table tags inside code it breaks? The main issue I see there is you have a couple of stray [/center] tags...

@Arantor
Copy link
Contributor

Arantor commented Jan 11, 2014

The code part, I assume was for replication purposes. There are so many issues driven by SMF's trying to be helpful in the preparser where it tries to fix bad tags especially table tags.

@Xarcell
Copy link

Xarcell commented Jan 11, 2014

Could the BBC code itself be the problem? Why are there closing center tags within the table tags, rather than inside the table-cell's. Are you doing this during live preview I assume? Need more specific's on how you created this issue.

@Arantor
Copy link
Contributor

Arantor commented Jan 11, 2014

This is a bug report from the main bug reports board. But I'm well aware of some of these issues as some of them go back years. The preparser tries to do certain validations and enforcements, for example forcing a td to be inside a tr to be inside a table, and vice versa that a table contains a tr contains a td. Amongst other things it prevents introducing th tags for nicer tables, but there are so many issues that relate to this hierarchy it's unreal.

live627 added a commit to live627/SMF2.1 that referenced this issue Feb 18, 2015
Signed-off-by: John Rayes <live627@gmail.com>
live627 added a commit that referenced this issue Feb 18, 2015
@live627 live627 closed this as completed Feb 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants