Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Breakdown a HTML file into sub textblocks. Date: Wed, 11 Sep 2019 10:20:20 +0200 Lines: 60 Message-ID: References: <618f4c30-0e7f-45c0-b089-0fc245059933@googlegroups.com> <0b66d7fb-1cc2-4c72-885e-b3e6be299fa4@googlegroups.com> <7fa63efb-7e25-4f63-bd93-11b4f8677378@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net Uw+/wZFf81WmzqTFNzwMmAVTj3Y22QYC7lxn0D93Ppltk9kPLm Cancel-Lock: sha1:E5O6WOGRWQdFq2QgxSvzv3DJxxk= In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.javascript:37222 On 11.09.19 08:25, Jonas Thörnvall wrote: > Den onsdag 11 september 2019 kl. 00:59:01 UTC+2 skrev Arno Welzel: >> Jonas Thörnvall: >> >>> To not get any problamss i would just implement it to get HTML >>> files from same domain and folder. And only allow the new TAG >>> from originally loaded URL page, so nesting loops can not occur. >>> >>> This is not visible only a comment >>> about what is loaded >> >> You should first learn the basics of HTML. This construct is utter >> nonsense. >> >> 1) The thing you describe is an "element" not a "tag". >> >> 2) An HTML element usually has an opening tag and a closing >> tag , even though there are elements which don't require a >> closing tag. >> >> 3) If there are attributes like "sub", they will *not* be repeated >> in the closing tag. >> >> For example - this is corrent: >> >>

.....

>> >> but this *not*: >> >>

...

>> >>> That is what i would have done from start. >> >> You should first learn how HTML *really* works and how to name >> things correctly. >> >> >> -- Arno Welzel https://arnowelzel.de > > But of course you are right. would be the > correct formatted tags. > > But i think my naming convention was rather smart because now the new > "subelement" have the start tag instead of and we > know we do not allow subs within subs so no nesting can occur. You still don't get it! Learn at least the basics properly! The element in your example is "HTML" and *not* "HTML SUB". The elements starts with the opening tag "" and in your example it has an *attribute* named "SUB". -- Arno Welzel https://arnowelzel.de