Missing .length causing the test to fail

Added the .length attribute to fix a failing test in Shadow DOM's
csshostrule-attributes test.