Home » Forum » Bug Report and Feature Requests

Forum: Bug Report and Feature Requests

buggy splitting and browser problematic parsing with new site behaviour

robotica 🚫
Updated:

This is tried on both Firefox and Chromium, and I suspect this is also true in other browsers too.

This bug rears its head over at (story ID 72917) Dominion Background and Author's Guide and possibly some other articles too.

Summary of bug: The new splitting of article sometimes split it in the middle of a blockquote (or possibly similar tag) resulting in a different DOM tree than what is expected.

Details of the bug: (I'll leave out the angle brackets in the HTML tag desctiptions)

The new split of contents occurs in the middle of a blockquote, so the initial HTML received by browsers is ill-formed. The browsers then run in the quirk mode and attempt to fix this by inserting the closing /blockquote tag at the end of the parent (article) tag, resulting in everything from the div-node id="sr" to the div-node class="end-note" (plus the comment immediately after) all now wrapped inside the blockquote. Clicking it to load the second part of the content will not fix this as, AFAICT, the script put the second part of the content inside the id="sr" div so now the browser sees a stray /blockquote that it decides to remove.

The only way I can think of to fix this is to only split up after the end of a paragraph that is a child of the article and not grandchild (or further decendents). However, I don't know whether the current site backend is doing it on-demand or predetermined, but either case it will come with additional server load.

NickP 🚫

@robotica

Even worse situation happened with this story: https://storiesonline.net/s/26376/denise-my-hot-secretary

Split happened inside HTML tag, as result loading mechanism doesn't work at all...

Lazeez Jiddan (Webmaster)

@NickP

Fixed.

Lazeez Jiddan (Webmaster)

@robotica

Fixed.

Replies:   robotica
robotica 🚫
Updated:

@Lazeez Jiddan (Webmaster)

Found another few which breaks in the middle of a paragraph, using a simple heuristic (beginning not with an angle bracket, the forum keeps eating any escape attempt I tried so I'll just use square brackets below) for the responseData dumped in the div#sr by iss(). These are what I found (comparing with what I previously downloaded) before I exhausted my daily limit today.

Format: (ID)::(Line number)::snippet

16328:200125::312::[i][/i][/p][div id="sr"]we see that."[p][/p]

16328:201549::202::[i][/i][/p][div id="sr"]Peacekeeper and I will be accompanied by only two marines.[p][/p]

16328:203008::395::[i]brothers[/i][/p][div id="sr"]."[p][/p]

23050:247799::300::[em][/em][/p][div id="sr"]Jefe. I'm yours!"[p][/p]

25051:248485::188::[i][/i][/p][div id="sr"]adventures, as she called them.[p][/p]

26242:249360::142::[/p][div id="sr"]Zoe cocked her head at Sam, while saying to me, "She just found out, did she?"[p][/p]

26242:249421::204::[i][/i][/p][div id="sr"]Done. I can has

26242:249436::182::[i][/i][/p][div id="sr"]that back in the lock-box.[p][/p]

26242:249745::170::[i][/i][/p][div id="sr"]You were right about

26309:249404::416::[em][/em][/p][div id="sr"]really about money."[p][/p]

26309:249567::409::[/p][div id="sr"]"A movie with that rating

46291:39177::160::[i]burn[/i][/p][div id="sr"] since the method

46291:40939::162::[i][/i][/p][div id="sr"]Mermaid to be exact,

46291:41340::300::[/p][div id="sr"]The A-12 was a saucer shaped

46291:41629::266::[i][/i][/p][div id="sr"]Mermaid's maneuvering

46291:42650::160::[sup][/sup][/p][div id="sr"]nd Battalion. "A

46291:44527::247::[sup][/sup][/p][div id="sr"]nd Infantry division,

46291:48702::188::[i][/i][/p][div id="sr"]demanding that they

46291:48703::268::[i]begged[/i][/p][div id="sr"] you not to sneak

48369:46182::164::[i][/i][/p][div id="sr"]You will act like a

59096:87721/a-lost-generation-chapter-1::195:: with[/i][/p][div id="sr"] America[i]. How naïve

75146:147777::336::[/p][div id="sr"]"I agree," Molly said. "I'm beat. Do you think we'd be safe in that house?"[p][/p]

Lazeez Jiddan (Webmaster)
Updated:

@robotica

Found another few which breaks in the middle of a paragraph, using a simple heuristic (beginning not with an angle bracket,

Thank you for the extensive bug report. Yes, the splitting function had a bug when a tag —like an < /i> tag— preceded the < /p> tag.

I've fixed the issue.

Back to Top

 

WARNING! ADULT CONTENT...

Storiesonline is for adult entertainment only. By accessing this site you declare that you are of legal age and that you agree with our Terms of Service and Privacy Policy.


Log In