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 00:58:53 +0200 Lines: 36 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 zOxfwXnF/1nAkbngiT2sgQ5GMiG4TdwXNI0FU/iejWtTRdrZy7 Cancel-Lock: sha1:93o12TuznHQYqOtYtRJ1ibCEuCo= In-Reply-To: <7fa63efb-7e25-4f63-bd93-11b4f8677378@googlegroups.com> Xref: csiph.com comp.lang.javascript:37208 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