yui/yui3 — pull request #68 by tivac (2012-01-12 00:48:29+00:00)
Title: Fix for Bug 2530186

You can't extend a class that uses `Y.WidgetStack` & provide a default value for the `zIndex` because the `HTML_PARSER.zIndex` function will always override it to 0. Currently the only way to get a different `zIndex` value is to pass it in at construction time or set it on the DOM.

This fixes that by making the `HTML_PARSER.zIndex` function ignore `"auto"` results because that effectively means "unset". It doesn't fix what IMO is a bit of a priority problem in the core Base/Attribute system but that's beyond the scope of the bug I think.

I also added tests, because more tests are always better and `Y.WidgetStack` had none. Now it can hang out w/ the cool kids that have tests!

The bug: http://yuilibrary.com/projects/yui3/ticket/2530186