<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Oapalmu</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Oapalmu"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Oapalmu"/>
	<updated>2026-09-21T20:55:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x_talk:Adding_JavaScript_and_CSS_to_the_page&amp;diff=26566</id>
		<title>J3.x talk:Adding JavaScript and CSS to the page</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x_talk:Adding_JavaScript_and_CSS_to_the_page&amp;diff=26566"/>
		<updated>2010-04-02T11:15:00Z</updated>

		<summary type="html">&lt;p&gt;Oapalmu: /* A comment on xhtml validity &amp;amp; well-formedness */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello there.. I was about to pitch in and add on a whole other section on basically doing the exact same thing you did with $document.. except using the JHTML class.  I wasn&#039;t exactly sure why you&#039;d use one over the other and thought I&#039;d ask if you knew why this redunacy exists and if one is in some way more helpful.  Any ideas?  &lt;br /&gt;
[[User:Haelix|Haelix]] 23:45, 8 November 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
Haelix, I agree.  It appears that the JHTML classes wrap the $document methods, and take care of anything else you might need (like mootools).  I have updated the article to reflect this.[[User:Mike dowler|Mike]] 21:24, 17 February 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
what page should we keep ?&lt;br /&gt;
this one&lt;br /&gt;
http://docs.joomla.org/Adding_JavaScript&lt;br /&gt;
or this one&lt;br /&gt;
http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page&lt;br /&gt;
?&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Using the class loader method is the common way:&lt;br /&gt;
&lt;br /&gt;
 JHTML::_(&#039;script&#039;, $filename, $path);&lt;br /&gt;
 JHTML::_(&#039;stylesheet&#039;, $filename, $path);&lt;br /&gt;
&lt;br /&gt;
[[User:Bembelimen|Bembelimen]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== A comment on xhtml validity &amp;amp; well-formedness ==&lt;br /&gt;
&lt;br /&gt;
A few pointers on the current start of the article: &lt;br /&gt;
&lt;br /&gt;
-well-formedness refers to balancing tags and nesting elements correctly, making it valid XML&lt;br /&gt;
&lt;br /&gt;
-validity, i.e. conforming to (one of) the XHTML DTD(s),  is what you are talking about with style- and script-elements and where they are allowed. Further, script-elements _are_ allowed inside the document&#039;s body-element, whether as external files with the src-attribute or inline inside script-tags. Style-elements on the other hand are only allowed inside the head-element, as you write.&lt;/div&gt;</summary>
		<author><name>Oapalmu</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x_talk:Adding_JavaScript_and_CSS_to_the_page&amp;diff=26565</id>
		<title>J3.x talk:Adding JavaScript and CSS to the page</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x_talk:Adding_JavaScript_and_CSS_to_the_page&amp;diff=26565"/>
		<updated>2010-04-02T11:13:35Z</updated>

		<summary type="html">&lt;p&gt;Oapalmu: /* A comment on xhtml validity &amp;amp; well-formedness */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello there.. I was about to pitch in and add on a whole other section on basically doing the exact same thing you did with $document.. except using the JHTML class.  I wasn&#039;t exactly sure why you&#039;d use one over the other and thought I&#039;d ask if you knew why this redunacy exists and if one is in some way more helpful.  Any ideas?  &lt;br /&gt;
[[User:Haelix|Haelix]] 23:45, 8 November 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
Haelix, I agree.  It appears that the JHTML classes wrap the $document methods, and take care of anything else you might need (like mootools).  I have updated the article to reflect this.[[User:Mike dowler|Mike]] 21:24, 17 February 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
what page should we keep ?&lt;br /&gt;
this one&lt;br /&gt;
http://docs.joomla.org/Adding_JavaScript&lt;br /&gt;
or this one&lt;br /&gt;
http://docs.joomla.org/Adding_JavaScript_and_CSS_to_the_page&lt;br /&gt;
?&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Using the class loader method is the common way:&lt;br /&gt;
&lt;br /&gt;
 JHTML::_(&#039;script&#039;, $filename, $path);&lt;br /&gt;
 JHTML::_(&#039;stylesheet&#039;, $filename, $path);&lt;br /&gt;
&lt;br /&gt;
[[User:Bembelimen|Bembelimen]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== A comment on xhtml validity &amp;amp; well-formedness ==&lt;br /&gt;
&lt;br /&gt;
A few pointers on the current start of the article: &lt;br /&gt;
-well-formedness refers to balancing tags and nesting elements correctly, making it valid XML&lt;br /&gt;
-validity, i.e. conforming to (one of) the XHTML DTD(s),  is what you are talking about with style- and script-elements and where they are allowed. Further, script-elements _are_ allowed inside the document&#039;s body-element, whether as external files with the src-attribute or inline inside script-tags. Style-elements on the other hand are only allowed inside the head-element, as you write.&lt;/div&gt;</summary>
		<author><name>Oapalmu</name></author>
	</entry>
</feed>