This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17887 - tree element to display directory
Summary: tree element to display directory
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 07:12 UTC by contributor
Modified: 2012-09-27 23:54 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2012-07-18 07:12:32 UTC
This was was cloned from bug 17689 as part of operation convergence.
Originally filed: 2012-07-04 08:52:00 +0000
Original reporter: Yang Sun <eric.sun@huawei.com>

================================================================================
 #0   Yang Sun                                        2012-07-04 08:52:07 +0000 
--------------------------------------------------------------------------------
when develop some application need to display local files in a hierachy style, it is not convinient to write a tree style UI for directory->file show,like windows explorer.

I think other developer also have this requirement, so can we have a tree element to display directory/file in a tree style.
================================================================================
 #1   Travis Leithead [MSFT]                          2012-07-05 17:19:20 +0000 
--------------------------------------------------------------------------------
If I understand your use-case correctly, I believe the technique used is nested list items. This is how table-of-contents are typically done, which is very similar in practice to directory/file listings.

I don't think we need a new semantic element for this.
================================================================================
 #2   Yang Sun                                        2012-07-06 08:48:00 +0000 
--------------------------------------------------------------------------------
But we need to write more JS/CSS code to get a similar effect as windows explorer, and it make the web page redundant and large in size.

a <explorer src="file:///x/xx"></explorer> will really be very simple.

(In reply to comment #1)
================================================================================
Comment 1 Ian 'Hixie' Hickson 2012-09-27 23:54:09 UTC
If you want to display local files, just use <iframe src="file://..."></iframe> point to the directory.

It won't work on the public Web, because we don't want to expose local files on public Web pages.