YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2528264 (checkedin enhancement)

Reporter


Peter Abrahamsen
Opened: 09/22/09
Last modified: 02/6/10
Status: checkedin
Type: enhancement
Resolution: fixed

Owner


Satyen Desai
Target Release: 3.1.0
Priority: P3 (normal)
Summary: Widget should support a parentNode attribute
Description:

A 'parentNode' attribute, specified on Widget or one of its subclasses, could be used to ensure that all widgets were created within a particular portion of the document.

I'm happy to hear suggestions of other ways of ensuring this behaviour.

Type: enhancement Observed in Version: development master
Component: Widget Severity: S4 (low)
Assigned To: Satyen Desai Target Release: 3.1.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

Change History

Satyen Desai

YUI Developer

Posted: 10/12/09
  • location changed to Library Code
  • milestone changed to 3.1.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Users can pass a node to render() to control where the widget is placed in the document.

Currently the default parent node if a node is not passed to render() is the body element of the document which contains the bounding box.

I can see value in allowing users to customize this default.

Satyen Desai

YUI Developer

Posted: 02/6/10
  • resolution changed to fixed
  • status changed from accepted to checkedin

Added DEF_PARENT_NODE property to allow component developers to over-ride default behavior of rendering to BODY if no parent node or existing markup is provided. Fixes #2528264
View Commit: