Attribute::create() will do just fine.
Created attachment 127705 [details] Patch
Committed r108164: <http://trac.webkit.org/changeset/108164>