Hi all,

I was helping out in my sister's house last night (just being a helpful lil' handyman brother :D), and while fixing something in one of the bathrooms, I noticed something very interesting: there is a vanity light above the mirrior that has a single receptactle built into the base of the fixture itself. Since bathroom receptacles have to be GFCI protected, and the light was [obviously] not, this got me wondering:

1) Would a non-GFCI receptacle like that be legal, sice technically it's not a "receptacle device" installed a box, but merely a separate feature of a larger, UL-listed device? After all, it's been installed since the house was built (sometime in the 1990s), so the inspector at the time obviously didn't complain too much about it. Still, it doesn't seem to likely to be allowed...
2) Upon removing the fixture and checking inside, I discovered that the receptacle was not actually connected; i.e. the electrician only connected the feed to the leads of the bulb sockets, but left the leads to the receptacle just sitting there, not attached to anything. Could that be the solution to the mystery: that it is actually is illegal, but the inspector did not complain because he saw it's not connected to anything and that it's only there to fill up the hole in the fixture body?