in partnership with mediatemple

Ticket #377 (closed defect: duplicate)

Opened 10 months ago

Last modified 3 months ago

Element does not support namespacing

Reported by: 131.php@… Owned by: kamicane
Type: defect Priority: minor
Milestone: Mootools version 1.3 Component: Core
Keywords: namespace, Element Cc: kamicane

Description

When you create a "new Element". Mootools proceed with

el = document.createElement(el);

In order to make it XHTML compliant, i had to add

var XHTML = "http://www.w3.org/1999/xhtml";

el=document.createElementNS

?document.createElementNS(XHTML,el)
:document.createElement(el);

IE6/7 doesn't support/bother namespacing, so there's no "issue" here.

Regards - 131

Change History

Changed 10 months ago by digitarald

What effect has the missing NS on the created element?

Changed 10 months ago by 131

An element is not interpreded as an HTML element, so, it is like if you were trying to add "<butterfly>this have to be bold !</butterfly>" in a HTML page...

Changed 10 months ago by 131

  • priority changed from minor to major

Bug
http://php.cloudyks.org/ => with a patch

http://php.cloudyks.org/js/mts/patch_xhtml.js

Without my 'patch'

http://php.cloudyks.org/index2.xml

More generally, every $$, $E, ... are broken
I heard the whole selector module will be re-written, i thing namespacing support have to be in taken care of at the very beginning.

regards

Changed 8 months ago by kamicane

  • priority changed from major to minor

Changed 8 months ago by ibolmo

  • milestone changed from Mootools version 1.2 to Mootools version 1.3

Changed 8 months ago by kamicane

  • owner set to kamicane
  • milestone changed from Mootools version 1.3 to Mootools version 1.2

Changed 8 months ago by kamicane

  • status changed from new to closed
  • resolution set to fixed

fixed in [995]

Changed 7 months ago by 131

  • cc kamicane added
  • status changed from closed to reopened
  • resolution deleted

Broken in http://dev.mootools.net/browser/trunk/Source/Element/Element.js?rev=1000
I guess it was removed aside with

"fixed a typo I made in the last commit that broke Element constructor (sorry). "

Changed 7 months ago by kamicane

  • component set to Core
  • milestone changed from Mootools version 1.2 to Mootools version 1.3

Changed 3 months ago by 131

duplicate 688

Changed 3 months ago by digitarald

  • status changed from reopened to closed
  • resolution set to duplicate

Dup #688

Note: See TracTickets for help on using tickets.