Problem/Motivation
Nothing gets injected into body if paragraphs have attributes and are not plain
Steps to reproduce
Experiment with body text with versions of paragraphs like this:
<p>asdfasdfadf</p> and <p class="some class">
The latter will get ignored.
If all your paragraphs have attributes nothing will get injected. If only some - injection may happen but not where you want it.
Example:
<p class="p1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
</p>
<p class="p1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore.
</p>
Proposed resolution
Change paragraphs 'exploding' pattern
Comments
Comment #2
marcoka commentedWhat is meant wit hattributes 0?
Comment #3
masterperoo commented@marcoka
It was typo in description. I have now made changes
Comment #4
masterperoo commentedComment #5
masterperoo commentedA patch that seems to work for me
Comment #6
masterperoo commentedComment #8
marcoka commentedThank you. has been pushed and i add it to the new 1.2.x
Comment #9
mlncn commentedThis change is breaking body inject on one of our sites, causing the div we are injecting to be put inside a paragraph tag that then never closes:
(That is, the paragraph never closes if you view source. Browsers resolve the open paragraph by closing it into the div bizarrely like this:
</p<div>.)Comment #11
marcoka commentedi can confirm this. patch is not sufficient and causes a new problem with stray p-tags.i am reverting this in the latest beta.