Ticket #2532256 (new defect)
ReporterPeter Michaux |
Opened: 05/3/12 Last modified: 05/3/12 Status: new Type: defect |
Owner Matt Sweeney |
Target Release: Priority: |
|---|---|---|---|
| Summary: | Y.DOM._create caching of fragClones by tag only (but not doc) | ||
| Description: | I'm looking at the following code.
There are not motivational comments included but it appears that the programmer wanted to avoid creating elements if an element with the same tag was already created. The problem is that this function takes a "doc" so that when the element is created it is created with the correct doc. If a subsequent call to _create is made with the same tag but a different doc,
In order for the caching to work so that the right frag element created with the correct doc object, the caching needs to be done in two dimensions (i.e. tag and doc) but it is only being done in one |
||
| Type: | defect | Observed in Version: | 3.5.0 |
| Component: | Dom | Severity: | S3 (normal) |
| Assigned To: | Matt Sweeney | Target Release: | |
| Location: | Priority: | ||
| Tags: | Relates To: | ||
| Browsers: | N/A | ||
| URL: | |||
| Test Information: | |||