[squeak-dev] XML-Parser and <br /> vs <br/> vs https://www.w3schools.com/html/html_elements.asp

gettimothy gettimothy at zoho.com
Sat Sep 19 22:28:48 UTC 2020


Hi Folks,



I have pretty much succesfully imported XTreams and the XML-Parser stuff to Squeak 6alpha. from Squeak5.3



Some SUnit tests from my project on 5.3 , now ported to 6.0alpha are failing for the following reason.



(XMLElement name:'br' ) printString '<br/>'

vs

(XMLElement name:'br' ) printString '<br />'



Notice the latter one inserts an extra space after the 'br'...that is the behavior on my 6.0.





Checking the Monticello, the 6.0 


XML-Parser (monty.428)




while the 5.3 is



XML-Parser (monty.428 , ul.44)






So, presumably having the extra ul.44 removes the space, but I have no idea what the ul.44 is, why it is there, how it got there....yada,yada,yada.

Being new to this, who knows how I managed that.  





before I mailed this, I checked at the w3 schools on the <br> tag and it asserts it should not have the slash in it. w3 schools is not the xHTML standard, so this may or may not be true.





FWIW, the <br/> stuff works fine for me as does the <br />, but I do not know if it will cause problems when I move on to XPath stuff later on the resulting xHTML docs.



Which should I use? 



Should I bring in the ul.44? and how do I do that?

Should I revise my tests (there are not too many) to insert that extra space.





thank you for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200919/d28047ed/attachment.html>


More information about the Squeak-dev mailing list